<input type="hidden" name="blog.id" value="#(blog.id??)" />
<div class="layui-form-item">
	<label class="layui-form-label">标题</label>
	<div class="layui-input-block">
		<input type="text" name="blog.title" value="#(blog.title??)" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
	</div>
</div>

<div class="layui-form-item">
	<label class="layui-form-label">二级标题</label>
	<div class="layui-input-block">
		<input type="text" name="blog.subTitle" value="#(blog.subTitle??)" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
	</div>
</div>

<div class="layui-form-item">
	<label class="layui-form-label">编号</label>
	<div class="layui-input-block">
		<input type="text" name="blog.ucode" value="#(blog.ucode??)" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
	</div>
</div>

<div class="layui-form-item">
	<label class="layui-form-label">是否显示</label>
	<div class="layui-input-block">
		<input type="text" name="blog.isShow" value="#(blog.isShow??)" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
	</div>
</div>

<div class="layui-form-item">
	<label class="layui-form-label">关键字</label>
	<div class="layui-input-block">
		<input type="text" name="blog.keys" value="#(blog.keys??)" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
	</div>
</div>

<link rel="stylesheet" href="https://unpkg.com/vditor/dist/index.css" />
<script src="https://unpkg.com/vditor/dist/index.min.js"></script>
<div class="layui-form-item layui-form-text">
	<label class="layui-form-label">博客内容</label>
	<div class="layui-input-block">
		<div id="vditor">
			#(blog.content??)
		</div>
<!--		<textarea name="blog.content"  placeholder="请输入内容" class="layui-textarea"></textarea>-->
	</div>
</div>
<script type="text/javascript">
	var vditor = new Vditor('vditor', {
		height: 300,
		cache: {
			enable: false
		},
		upload: {
			url: '/file',
			filename(name) {
				console.log(name)
				return name
			}
		}
	});
</script>

<div class="layui-form-item">
	<div class="layui-input-block">
		<button type="submit" class="layui-btn" lay-submit lay-filter="demo1">立即提交</button>
		<button type="reset" class="layui-btn layui-btn-primary">重置</button>
	</div>
</div>

